package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_Dict", catalog="Id")
public class YsDict extends BaseEntity<YsDict> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="DictKey", nameJava="dictKey", typeDataBase="varchar")
	private String dictKey;
	@YsField(nameDataBase="DictName", nameJava="dictName", typeDataBase="varchar")
	private String dictName;
	@YsField(nameDataBase="DictValue", nameJava="dictValue", typeDataBase="varchar")
	private String dictValue;
	@YsField(nameDataBase="SortNo", nameJava="sortNo", typeDataBase="int")
	private Integer sortNo;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsDict setId(Long id) {
		this.id = id;
		return this;
	}
	public String getDictKey() {
		return dictKey;
	}
	public YsDict setDictKey(String dictKey) {
		this.dictKey = dictKey;
		return this;
	}
	public String getDictName() {
		return dictName;
	}
	public YsDict setDictName(String dictName) {
		this.dictName = dictName;
		return this;
	}
	public String getDictValue() {
		return dictValue;
	}
	public YsDict setDictValue(String dictValue) {
		this.dictValue = dictValue;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public YsDict setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsDict setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsDict setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsDict setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsDict ysDict(
		String dictKey,
		String dictName,
		String dictValue,
		Integer sortNo,
		Integer status
			) {
		YsDict entity = new YsDict();
		entity.setDictKey(dictKey);
		entity.setDictName(dictName);
		entity.setDictValue(dictValue);
		entity.setSortNo(sortNo);
		entity.setStatus(status);
		return entity;
	}
}